/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function recycleBinComboBox(comboBoxId, onSelectFunction)
{
    var getDelCombo = new Ext.form.ComboBox({
        id: comboBoxId,
        store: new Ext.data.Store({
        data:[ [false,"Inbox"], [true,"Recycle Bin"] ],
        reader: new Ext.data.ArrayReader
        ( {id:'getDelBool'},['getDelBool','getDel'])
		}),
        displayField: 'getDel',
        valueField: 'getDelBool',
        //typeAhead: true,
        mode: 'local',
        triggerAction: 'all',
        selectOnFocus:true,
        width:85,
        editable: false,
        disabled: true
    });
    getDelCombo.setValue(getDelCombo.store.data.items[0].data['getDelBool']);
    getDelCombo.on('select', onSelectFunction);
    
    return getDelCombo;
}